﻿

using CommunityToolkit.Mvvm.ComponentModel;
using Company.Shell.Enums;

namespace Company.Shell.Models
{
    /// <summary>
    /// 缓存实体
    /// </summary>
   public class CacheEntity :ObservableObject
    {
        private int roomId;
        /// <summary>
        /// 房间号
        /// </summary>
        public int RoomId
        {
            get => roomId;
            set => SetProperty(ref roomId, value);
        }

        private string? programName;
        /// <summary>
        /// 程序名
        /// </summary>
        public string? ProgramName
        {
            get => programName;
            set => SetProperty(ref programName, value);
        }

        private string? csvFileName;
        /// <summary>
        /// csv文件名
        /// </summary>
        public string? CsvFileName
        {
            get => csvFileName;
            set => SetProperty(ref csvFileName, value);
        }

        private RoomMode roomMode;
        /// <summary>
        /// 房间运行模式
        /// </summary>
        public RoomMode RoomMode
        {
            get => roomMode;
            set => SetProperty(ref roomMode, value);
        }

        private DateTime startTime;
        /// <summary>
        /// 房间开始时间
        /// </summary>
        public DateTime StartTime
        {
            get => startTime;
            set => SetProperty(ref startTime, value);
        }

        private DateTime writeTime;
        /// <summary>
        /// 写数据时间
        /// </summary>
        public DateTime WriteTime
        {
            get => writeTime;
            set => SetProperty(ref writeTime, value);
        }

    }
}
